package com.atguigu.controller;

import com.atguigu.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class UserController {
    @RequestMapping("/user")
    public List<User> getUserList(){
        List<User> userList=new ArrayList();
        userList.add(new User(1,"黄蓉","男",38,"葫芦岛","2791646746","213211@qq.com","huangrong","21321313"));
        userList.add(new User(2,"蓉","女",38,"葫芦岛","2791646746","213211@qq.com","huangrong","21321313"));
        return userList;
    }
}
